import request from '@/utils/request'
// 查询员工数据
export function getUserTab(queryParams) {
    return request({
        url: '/admin/staffList',
        method: 'post',
        params: queryParams
    })
}

// 添加员工数据

export function addUserInfo(queryParams) {
    return request({
        url: '/admin/staffAdd',
        method: 'post',
        params: queryParams
    })
}

// 删除员工
export function deleteUser(queryParams) {
    return request({
        url: '/admin/staffDel',
        method: 'post',
        params: queryParams
    })
}

// 编辑员工

export function updateUser(queryParams) {
    return request({
        url: '/admin/staffUpdate',
        method: 'post',
        params: queryParams
    })
}
// 编辑员工

export function getUserById(queryParams) {
    return request({
        url: '/admin/staffList',
        method: 'post',
        params: queryParams
    })
}
